package com.heliang.activity;

import java.util.ArrayList;
import java.util.List;

import com.heliang.R;
import com.heliang.R.layout;
import com.heliang.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.support.v4.app.NavUtils;

public class AutoCompleteActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.autocomplete);

		AutoCompleteTextView autocomplete = (AutoCompleteTextView) findViewById(R.id.autocomplete);
		String[] autocompletes = getResources().getStringArray(
				R.array.autocompleteDate);

		ArrayAdapter<String> arrayadater = new ArrayAdapter<String>(this,
				R.layout.autocomplete_list_item, autocompletes);

		autocomplete.setAdapter(arrayadater);
	}

}
